import {clientRequest} from "~/utils/backend_request";

interface LoginForm{
    login:string,
    password: string
}
export function ApiLogin(params: LoginForm){
    return clientRequest("/auth/login", "post", params)
}

export function ApiCheckLogin() {
    return clientRequest("/api/backend/permission")
}

export function ApiGetPermissions(){
    return clientRequest("/api/backend/permissions")
}